package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class Crew.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>department</li>
 * 		<li>job</li>
 * 		<li>id</li>
 * 		<li>name</li>
 * 		<li>profile_path</li>
 * 	</ul>
 * </p>	
 * @author Tanmoy
 */
public class Crew extends Person implements Serializable {

	private static final long serialVersionUID = 5620543466456590817L;

	@SerializedName("department")
	private String department;

	@SerializedName("job")
	private String job;

	/**
	 * Default Constructor.
	 */
	public Crew() {

	}

	/**
	 * Gets the department.
	 *
	 * @return 
	 * 		The department
	 */
	public String getDepartment() {
		return department;
	}

	/**
	 * Sets the department.
	 *
	 * @param department 
	 * 		The new department
	 */
	public void setDepartment(String department) {
		this.department = department;
	}

	/**
	 * Gets the job.
	 *
	 * @return 
	 * 		The job
	 */
	public String getJob() {
		return job;
	}

	/**
	 * Sets the job.
	 *
	 * @param job 
	 * 		The new job
	 */
	public void setJob(String job) {
		this.job = job;
	}

	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Person#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("department:").append("\"").append(department).append("\"").
			append(",").
			append("id:").append(id).
			append(",").
			append("job:").append("\"").append(job).append("\"").
			append(",").
			append("name:").append("\"").append(name).append("\"").
			append(",").
			append("profile_path:").append("\"").append(profilePath).append("\"").
			append("}");
		return builder.toString();
	}
}
